Skip to content

macOS 알림을 Cue에 바로 반영 - #2

Merged
exemchs merged 1 commit into
mainfrom
agent/realtime-notification-refresh
Jul 27, 2026
Merged

macOS 알림을 Cue에 바로 반영#2
exemchs merged 1 commit into
mainfrom
agent/realtime-notification-refresh

Conversation

@exemchs

@exemchs exemchs commented Jul 27, 2026

Copy link
Copy Markdown
Owner

변경 내용

  • macOS 알림 센터 SQLite DB와 WAL 변경을 로컬에서 감지합니다.
  • 파일 변경 후 약 80ms 동안 이벤트를 모아 Cue 목록을 즉시 갱신합니다.
  • DB 파일이 교체되거나 WAL이 새로 생겨도 감시를 자동으로 다시 연결합니다.
  • 기존 1.25초 확인 주기는 누락 방지용으로 유지합니다.
  • Mattermost나 일반 알림 소스가 모두 꺼져 있으면 파일 감시도 중단합니다.

이유

기존에는 macOS 알림이 표시된 뒤 최대 1.25초가 지나야 Cue에 반영될 수 있었습니다. macOS가 알림을 기록한 직후 Cue가 읽도록 바꿔 체감 지연을 줄였습니다.

확인

  • swift build -c release
  • 임시 SQLite/WAL 환경에서 파일 생성 및 후속 WAL 쓰기 콜백 확인
  • ./Scripts/build-app.sh
  • codesign --verify --deep --strict dist/Cue.app
  • 실행 중인 Cue가 Notification Center의 db, db-wal, db-shm을 감시하는지 확인

@exemchs
exemchs marked this pull request as ready for review July 27, 2026 08:10
@exemchs
exemchs merged commit b8a9290 into main Jul 27, 2026
1 check passed
@exemchs
exemchs deleted the agent/realtime-notification-refresh branch July 27, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant